package com.fs.web.yz.utils;

import com.fs.common.pojo.CheckNote;
import com.fs.web.yz.service.ICheckRecipesService;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@AllArgsConstructor()
public class CreateCheckRecipesThread implements Runnable {

    private ICheckRecipesService crscves;

    private CheckNote cn;

    private static Logger log = LoggerFactory.getLogger(CreateCheckRecipesThread.class);

    @Override
    public void run() {
        try {
            crscves.createCheckRecipesForCheck(cn);
        }catch (Exception e) {
            log.error(e.getMessage(), e);
        }
    }
}
